<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ page import="java.util.Date"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>360 Feedback Solutions</title>
<link type="text/css"
	href="css/ui-lightness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<link type="text/css" href="css/master.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript">
	$(function() {
		// Tabs
		alert("initied");
		$('#functionaltab').tabs();
		$("button").button();
		//	$('#innertab').tabs();
	});
	
	$(function poll(){
	    $.ajax({ url: "http://localhost:8080/eftweb/settings.html", success: function(data){
	        //Update your dashboard gauge
	        //salesGauge.setValue(data.value);
	        alert("Inside poll");
	        console.log("Received data now");
	    }, dataType: "json", complete: poll, timeout: 30000 });
	    alert("Inside poll");
	})();
	
	
</script>
</head>
<body>
	<div id="functionaltab">
		<ul>
			<li><a href="#test1"><span>Create a message</span> </a></li>
			<li><a href="#test"><span>Preview</span> </a></li>
		</ul>
		<div id="test1">
		<div id="container">
			<div id="sidebar-b">
				<s:form action="settings" method="POST">
					<s:select label="EPP Message Type ?" list="commandTypeList"
						name="messageType" />
					<s:textfield label="Client Identifier" name="clientIdentifier" />
					<s:textfield label="Password" name="clientIdentifier" />
					<s:textfield label="New Password" name="clientIdentifier" />
					<s:textfield label="Options" name="clientIdentifier" />
					<s:textarea label="SVC's" name="clientIdentifier" rows="5"
						cols="10" />
					<s:textfield label="Client Transaction Id" name="clientIdentifier" />
					<s:submit></s:submit>
				</s:form>
			</div>
			<div id="sidebar-a">Lorem ipsum dolor sit amet, consectetuer
				adipiscing elit. Nullam gravida enim ut risus. Praesent sapien
				purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.
				Donec in sapien in nibh rutrum gravida. Sed ut mauris. Fusce
				malesuada enim vitae lacus euismod vulputate. Nullam rhoncus mauris
				ac metus. Maecenas vulputate aliquam odio. Duis scelerisque justo a
				pede. Nam augue lorem, semper at, porta eget, placerat eget, purus.
				Suspendisse mattis nunc vestibulum ligula. In hac habitasse platea
				dictumst.</div>
		</div>
		</div>
		<div id="test">
			<b>Hello world!</b>
			<button>Save Settings</button>
		</div>
	</div>
</body>

</html>